﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="SmartBoard.Ink.PenCreator.PenCreatorDialog"
	x:Name="Window"
	Title="Pen Settings"
  ResizeMode="NoResize" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow" mc:Ignorable="d">

	<DockPanel x:Name="LayoutRoot">
		<StackPanel HorizontalAlignment="Right" DockPanel.Dock="Bottom" Orientation="Horizontal">
			<Button HorizontalAlignment="Right" Width="75" Content="_OK" IsDefault="True" Click="HandleOK" />
			<Button HorizontalAlignment="Right" Width="75" Content="_Cancel" IsCancel="True" Click="HandleCancel"/>
		</StackPanel>
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="*"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
      <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition/>
      </Grid.ColumnDefinitions>
			<Border Grid.Row="0" BorderBrush="Black" BorderThickness="2" Margin="2" >
				<UniformGrid x:Name="grid_colorPalette" Columns="15" Rows="10" />
			</Border>
			<Grid Grid.Row="1" Margin="2">
				<Grid.RowDefinitions>
					<RowDefinition />
					<RowDefinition />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="2*" />
					<ColumnDefinition Width="3*" />
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="2*" />
					<ColumnDefinition Width="3*" />
				</Grid.ColumnDefinitions>
				<CheckBox IsThreeState="False" IsChecked="{Binding Path=IsHighlighter}" Grid.Row="1" Content="Highligher" Grid.ColumnSpan="5" />
				<TextBlock Text="Height" Grid.Column="0" />
				<ComboBox x:Name="cmb_Height" Grid.Column="1" SelectedValue="{Binding Path=InkHeight}"/>
				<TextBlock Text="Width" Grid.Column="3" />
				<ComboBox x:Name="cmb_Width" Grid.Column="4" SelectedValue="{Binding Path=InkWidth}"/>
			</Grid>
			<Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="2" Grid.Column="1" Margin="1" >
				<Grid>
					<TextBlock Text="Write something here" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FFC3BABA" />
					<InkCanvas x:Name="w_inkCanvas" Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center" />
				</Grid>
			</Border>
		</Grid>
	</DockPanel>
</Window>